<template>
  <div id="app">
<!--    keep-alive:保持回到上一级页面的页面状态 页面不会被销毁-->
    <keep-alive>
      <router-view v-if="$route.meta.keepalive"/>
    </keep-alive>
    <router-view v-if="!$route.meta.keepalive"/>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
  body,p{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
  }
</style>
